import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 常用组件模块
const userRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		meta: {
			title: "学分管理"
		},
		children: [
			{
				path: "/creditManage/courseManage",
				element: lazyLoad(React.lazy(() => import("@/views/CreditManage/CourseManage"))),
				meta: {
					requiresAuth: true,
					title: "课程管理",
					key: "CourseManage"
				}
			},

		]
	}
];

export default userRouter;
